package com.ruoyi.system.service;

import com.ruoyi.system.domain.InspectCallPolicEquipment;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

import java.util.List;

/**
 * (InspectCallPolicEquipment)表服务接口
 *
 * @author makejava
 * @since 2022-11-15 13:32:08
 */
public interface InspectCallPolicEquipmentService {

    /**
     * 通过ID查询单条数据
     *
     * @param id 主键
     * @return 实例对象
     */
    InspectCallPolicEquipment queryById(Integer id);

    /**
     * 分页查询
     *
     * @param inspectCallPolicEquipment 筛选条件
     * @param pageRequest      分页对象
     * @return 查询结果
     */
    Page<InspectCallPolicEquipment> queryByPage(InspectCallPolicEquipment inspectCallPolicEquipment, PageRequest pageRequest);

    List<InspectCallPolicEquipment> queryAll(InspectCallPolicEquipment inspectCallPolicEquipment);

    /**
     * 新增数据
     *
     * @param inspectCallPolicEquipment 实例对象
     * @return 实例对象
     */
    InspectCallPolicEquipment insert(InspectCallPolicEquipment inspectCallPolicEquipment);

    /**
     * 修改数据
     *
     * @param inspectCallPolicEquipment 实例对象
     * @return 实例对象
     */
    InspectCallPolicEquipment update(InspectCallPolicEquipment inspectCallPolicEquipment);

    /**
     * 通过主键删除数据
     *
     * @param id 主键
     * @return 是否成功
     */
    boolean deleteById(Integer id);

    String importExcel(List<InspectCallPolicEquipment> inspectCallPolicEquipments, Boolean isUpdateSupport, String operName);


}
